package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_RoleModule", catalog="Id")
public class YsRoleModule extends BaseEntity<YsRoleModule> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="GuidTsDictionaryForModule", nameJava="guidTsDictionaryForModule", typeDataBase="varchar")
	private String guidTsDictionaryForModule;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsRoleModule setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public YsRoleModule setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public String getGuidTsDictionaryForModule() {
		return guidTsDictionaryForModule;
	}
	public YsRoleModule setGuidTsDictionaryForModule(String guidTsDictionaryForModule) {
		this.guidTsDictionaryForModule = guidTsDictionaryForModule;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsRoleModule setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsRoleModule setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsRoleModule setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsRoleModule ysRoleModule(
		Long roleId,
		String guidTsDictionaryForModule,
		Integer status
			) {
		YsRoleModule entity = new YsRoleModule();
		entity.setRoleId(roleId);
		entity.setGuidTsDictionaryForModule(guidTsDictionaryForModule);
		entity.setStatus(status);
		return entity;
	}
}